import 'package:flutter/material.dart';
import 'package:model_viewer/model_viewer.dart';


class GlbIndex extends StatefulWidget {
  @override
  _GlbIndexState createState() => _GlbIndexState();
}

class _GlbIndexState extends State<GlbIndex> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(appBar: AppBar(title: Text("3d效果展示"),),body: Container(
      width: 500,
      height: 300,
      //decoration: BoxDecoration(borderRadius: BorderRadius.circular(150),color: Colors.black26,),
      child: ModelViewer(
        backgroundColor: Colors.teal[50],
        src: 'http://rec6p45ah.hn-bkt.clouddn.com/aaaaa.glb',
        alt: "A 3D model of an table soccer",
        autoPlay: true,
        autoRotate: true,
        cameraControls: true,
      ),
    ),);
  }
}
